1: | and(true,X) | → activate(X) | |
2: | and(false,Y) | → false | |
3: | if(true,X,Y) | → activate(X) | |
4: | if(false,X,Y) | → activate(Y) | |
5: | add(0,X) | → activate(X) | |
6: | add(s(X),Y) | → s(n__add(activate(X),activate(Y))) | |
7: | first(0,X) | → nil | |
8: | first(s(X),cons(Y,Z)) | → cons(activate(Y),n__first(activate(X),activate(Z))) | |
9: | from(X) | → cons(activate(X),n__from(n__s(activate(X)))) | |
10: | add(X1,X2) | → n__add(X1,X2) | |
11: | first(X1,X2) | → n__first(X1,X2) | |
12: | from(X) | → n__from(X) | |
13: | s(X) | → n__s(X) | |
14: | activate(n__add(X1,X2)) | → add(activate(X1),X2) | |
15: | activate(n__first(X1,X2)) | → first(activate(X1),activate(X2)) | |
16: | activate(n__from(X)) | → from(X) | |
17: | activate(n__s(X)) | → s(X) | |
18: | activate(X) | → X | |
19: | AND(true,X) | → ACTIVATE(X) | |
20: | IF(true,X,Y) | → ACTIVATE(X) | |
21: | IF(false,X,Y) | → ACTIVATE(Y) | |
22: | ADD(0,X) | → ACTIVATE(X) | |
23: | ADD(s(X),Y) | → S(n__add(activate(X),activate(Y))) | |
24: | ADD(s(X),Y) | → ACTIVATE(X) | |
25: | ADD(s(X),Y) | → ACTIVATE(Y) | |
26: | FIRST(s(X),cons(Y,Z)) | → ACTIVATE(Y) | |
27: | FIRST(s(X),cons(Y,Z)) | → ACTIVATE(X) | |
28: | FIRST(s(X),cons(Y,Z)) | → ACTIVATE(Z) | |
29: | FROM(X) | → ACTIVATE(X) | |
30: | ACTIVATE(n__add(X1,X2)) | → ADD(activate(X1),X2) | |
31: | ACTIVATE(n__add(X1,X2)) | → ACTIVATE(X1) | |
32: | ACTIVATE(n__first(X1,X2)) | → FIRST(activate(X1),activate(X2)) | |
33: | ACTIVATE(n__first(X1,X2)) | → ACTIVATE(X1) | |
34: | ACTIVATE(n__first(X1,X2)) | → ACTIVATE(X2) | |
35: | ACTIVATE(n__from(X)) | → FROM(X) | |
36: | ACTIVATE(n__s(X)) | → S(X) | |